package com.mbd.rover.command;

/**
 * Клас, който обслужва JAVADOC
 * 
 * @author milena.bd@gmail.com
 */
public enum CommandKey {

	/** Move forward **/
	FORWARD('f', MoveForwardCommand.class),

	/** Rotate left **/
	LEFT('l', RotateLeftCommand.class),

	/** Rotate right **/
	RIGHT('r', RotateRightCommand.class);

	private Class<?> commandClz;

	private char key;

	private <C extends RoverCommand> CommandKey(char key, Class<C> commandClz) {
		this.key = key;
		this.commandClz = commandClz;
	}

	/**
	 * JAVADOC
	 * 
	 * @return Class
	 */
	public Class<?> getCommandClz() {
		return this.commandClz;
	}

	/**
	 * JAVADOC
	 * 
	 * @return char
	 */
	public char getKey() {
		return this.key;
	}

}
